using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.ApplicationBlocks.Updater.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;

namespace Microsoft.ApplicationBlocks.Updater.Utilities
{
    public static class DownloaderFactory
    {
        private static DownloaderInstanceFactory factory = new DownloaderInstanceFactory(ConfigurationSourceFactory.Create());

        public static IDownloader CreateDownloader(string downloaderName) { return factory.Create(downloaderName); }
        public static IDownloader CreateDownloader() { return factory.CreateDefault(); }
    }
}
